<%-- <%@page import="login.UserModel"%> --%>
<%-- <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> --%>
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -->
<!-- <html> -->
<!-- <head> -->
<!-- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> -->
<!-- <link href="/WebFinalProject/css/FinalProjectCSS.css" rel="stylesheet" type="text/css"> -->
<!-- <title></title> -->
<!-- </head> -->
<!-- <body> -->

<script type='text/javascript' src="js/jquery-latest.min.js"></script>
<script type='text/javascript' src='menu_jquery.js'></script>
<div id="cssmenu">
<%
	if(session.getAttribute("userLogin") != null){
		//UserModel userNavigation = (UserModel)session.getAttribute("userLogin");
		if("admin".equalsIgnoreCase(user.getRole())){
		%>
			<ul>
			   <li class="has-sub leftAlign"><a href='#'><span>User Management</span></a>
			      <ul>
			         <li class="leftAlign"><a href="/WebFinalProject/Eclass.do"><span>Manage User</span></a></li>
			         <li class="leftAlign"><a href="/WebFinalProject/Candidate.do"><span>Manage Candidate</span></a></li>
			         <li class="last leftAlign"><a href="javascript:flyToPage('manageTrainee');"><span>Manage Trainee</span></a></li>
			      </ul>
			   </li>
			   <li class="has-sub leftAlign"><a href='#'><span>ACE Management</span></a>
			      <ul>
			         <li class="leftAlign"><a href="javascript:flyToPage('batch');"><span>Batch</span></a></li>
			         <li class="leftAlign"><a href="/WebFinalProject/Schedule.do"><span>Class Schedule</span></a></li>
			         <li class="leftAlign"><a href="/WebFinalProject/Score.do"><span>ACE - Score</span></a></li>
			         <li class="last leftAlign"><a href="javascript:flyToPage('listExamPrep');"><span>ACE - Examination</span></a></li>
			 	  </ul>
			   </li>
			   <li class="has-sub leftAlign"><a href='#'><span>Setting</span></a>
			      <ul>
			         <li class="leftAlign"><a href="/WebFinalProject/Master.do"><span>Manage City</span></a></li>
			         <li class="leftAlign"><a href="javascript:flyToPage('manageSchool');"><span>Manage School</span></a></li>
			         <li class="leftAlign"><a href="javascript:flyToPage('manageJob');"><span>Manage Job</span></a></li>
			         <li class="leftAlign"><a href="javascript:flyToPage('manageGroupClass');"><span>Manage Group Class</span></a></li>
			         <li class="leftAlign"><a href="/WebFinalProject/Question.do"><span>Manage Question Pool</span></a></li>
			         <li class="last leftAlign"><a href="/WebFinalProject/Forum.do"><span>Manage Forum</span></a></li>
			      </ul>
			   </li>
			   <li class="last leftAlign"><a href="javascript:flyToPage('forumPage');"><span>Forum Discussion</span></a></li>
			   <li class="last leftAlign"><a href="/WebFinalProject/Filesharing.do"><span>File Sharing</span></a></li>
			</ul>
		<%
		}else if("candidate".equalsIgnoreCase(user.getRole())){
			if(session.getAttribute("doExam") == null) {
		%>
			<ul>
			   <li class="last leftAlign"><a href="javascript:flyToPage('accountSetting');"><span>Account Setting</span></a></li> <!-- link buat account setting -->
			   <li class="last leftAlign"><a href="/WebFinalProject/Candidate.do"><span>Profile Setting</span></a></li>
			   <li class="last leftAlign"><a href="/WebFinalProject/Exam.do"><span>Examination</span></a></li>
			</ul>
		<%		
			} else {
		%>
			
			<ul>
			   <li class="last leftAlign"><a><span>Account Setting</span></a></li> <!-- link buat account setting -->
			   <li class="last leftAlign"><a><span>Profile Setting</span></a></li>
			   <li class="last leftAlign"><a><span>Examination</span></a></li>
			</ul>
		<%	
			}
		}else if("trainee".equalsIgnoreCase(user.getRole())){
			if(session.getAttribute("doExam") == null) {
		%>
			<ul>
			   <li class="last leftAlign"><a href="/WebFinalProject/Schedule.do"><span>Class Schedule</span></a></li>
			   <li class="last leftAlign"><a href="/WebFinalProject/Exam.do"><span>ACE - Examination</span></a></li>
			   <li class="last leftAlign"><a href="javascript:flyToPage('report');"><span>ACE - Report</span></a></li>
			   <li class="last leftAlign"><a href="javascript:flyToPage('forumPage');"><span>Forum Discussion</span></a></li>
			   <li class="last leftAlign"><a href="/WebFinalProject/Filesharing.do"><span>File Sharing</span></a></li>
			</ul>
		<%		
			} else {
		%>
		
			<ul>
			   <li class="last leftAlign"><a><span>Class Schedule</span></a></li>
			   <li class="last leftAlign"><a><span>ACE - Examination</span></a></li>
			   <li class="last leftAlign"><a><span>ACE - Report</span></a></li>
			   <li class="last leftAlign"><a><span>Forum Discussion</span></a></li>
			   <li class="last leftAlign"><a><span>File Sharing</span></a></li>
			</ul>
		<%	
			}
		}else if("trainer".equalsIgnoreCase(user.getRole())){
		%>
			<ul>
			   <li class="last leftAlign"><a href="/WebFinalProject/Schedule.do"><span>Class Schedule</span></a></li>
			   <li class="last leftAlign"><a href="/WebFinalProject/Score.do"><span>ACE - Score</span></a></li>
			   <li class="last leftAlign"><a href="javascript:flyToPage('report');"><span>ACE - Report</span></a></li>
			   <li class="last leftAlign"><a href="javascript:flyToPage('forumPage');"><span>Forum Discussion</span></a></li>
			   <li class="last leftAlign"><a href="/WebFinalProject/Filesharing.do"><span>File Sharing</span></a></li>
			</ul>
		<%	
		}
	}
%>
</div>

<!-- </body> -->
<!-- </html> -->